package net.yunzhanyi.generic.domain.model;

import java.io.Serializable;

public class ClientPost implements Serializable {
    /**
     * id
     */
    private Long id;

    /**9
     * 用户ID
     */
    private Long uid;

    /**
     * 类型
     */
    private Integer postType;
    /**
     * 标题
     */
    private String title;

    /**
     * 内容
     */
    private String content;

    /**
     * 图片地址
     */
    private String images;

    private Long pageviews;

    /**
     * 评论数
     */
    private Long commentCount;

    /**
     * 收藏数
     */
    private Long collectionCount;

    /**
     * 点赞数
     */
    private Long upvoteCount;

    /**
     * 可见性 0公开 1私密 2好友可见
     */
    private Byte visibility;

    /**
     * 是否置顶
     */
    private Byte isTop;

    /**
     * 是否精华
     */
    private Byte isEssence;

    /**
     * 是否锁定
     */
    private Byte isLock;

    /**
     * 标签
     */
    private String tags;

    /**
     * IP地址
     */
    private String ip;

    /**
     * IP城市地址
     */
    private String ipLocation;

    /**
     * 创建时间
     */
    private Long createdTime;

    /**
     * 修改时间
     */
    private Long modifiedTime;

    /**
     * 删除时间
     */
    private Long deletedTime;

    /**
     * 是否删除 0 为未删除、1 为已删除
     */
    private Byte isDel;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public Integer getPostType() {
        return postType;
    }

    public void setPostType(Integer postType) {
        this.postType = postType;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getImages() {
        return images;
    }

    public void setImages(String images) {
        this.images = images;
    }

    public Long getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(Long commentCount) {
        this.commentCount = commentCount;
    }

    public Long getCollectionCount() {
        return collectionCount;
    }

    public void setCollectionCount(Long collectionCount) {
        this.collectionCount = collectionCount;
    }

    public Long getUpvoteCount() {
        return upvoteCount;
    }

    public void setUpvoteCount(Long upvoteCount) {
        this.upvoteCount = upvoteCount;
    }

    public Byte getVisibility() {
        return visibility;
    }

    public void setVisibility(Byte visibility) {
        this.visibility = visibility;
    }

    public Byte getIsTop() {
        return isTop;
    }

    public void setIsTop(Byte isTop) {
        this.isTop = isTop;
    }

    public Byte getIsEssence() {
        return isEssence;
    }

    public void setIsEssence(Byte isEssence) {
        this.isEssence = isEssence;
    }

    public Byte getIsLock() {
        return isLock;
    }

    public void setIsLock(Byte isLock) {
        this.isLock = isLock;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getIpLocation() {
        return ipLocation;
    }

    public void setIpLocation(String ipLocation) {
        this.ipLocation = ipLocation;
    }

    public Long getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Long createdTime) {
        this.createdTime = createdTime;
    }

    public Long getModifiedTime() {
        return modifiedTime;
    }

    public void setModifiedTime(Long modifiedTime) {
        this.modifiedTime = modifiedTime;
    }

    public Long getDeletedTime() {
        return deletedTime;
    }

    public void setDeletedTime(Long deletedTime) {
        this.deletedTime = deletedTime;
    }

    public Byte getIsDel() {
        return isDel;
    }

    public void setIsDel(Byte isDel) {
        this.isDel = isDel;
    }

    public Long getPageviews() {
        return pageviews;
    }

    public void setPageviews(Long pageviews) {
        this.pageviews = pageviews;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", uid=").append(uid);
        sb.append(", postType=").append(postType);
        sb.append(", title=").append(title);
        sb.append(", content=").append(content);
        sb.append(", images=").append(images);
        sb.append(", pageviews").append(pageviews);
        sb.append(", commentCount=").append(commentCount);
        sb.append(", collectionCount=").append(collectionCount);
        sb.append(", upvoteCount=").append(upvoteCount);
        sb.append(", visibility=").append(visibility);
        sb.append(", isTop=").append(isTop);
        sb.append(", isEssence=").append(isEssence);
        sb.append(", isLock=").append(isLock);
        sb.append(", tags=").append(tags);
        sb.append(", ip=").append(ip);
        sb.append(", ipLocation=").append(ipLocation);
        sb.append(", createdTime=").append(createdTime);
        sb.append(", modifiedTime=").append(modifiedTime);
        sb.append(", deletedTime=").append(deletedTime);
        sb.append(", isDel=").append(isDel);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}